import http from './http'

const userLogin = (data) => {
    return http.post('/api/UserApi/userLogin',
        data,
        { headers: { act: 'userLogin' } })
}


// 获取用户信息
const getUserInfos = () => {
    return http.get(
        '/api/UserApi/getUserInfos',
        { headers: { act: 'setCoursecollect' } }
    )
}

export {
    userLogin,
    getUserInfos
}